package com.heima.homeservicemanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.heima.homeservicemanagementsystem.entity.common.ImageEntity;
import io.swagger.v3.oas.annotations.tags.Tag;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * 评论表;
 *
 * @author : http://www.chiner.pro
 * @date : 2025-4-22
 */
@Data
/*@ApiModel(value = "评论表",description = "")*/
@Tag(name = "评论表")
@TableName(value = "comment_form", autoResultMap = true)
@EqualsAndHashCode(callSuper = false)
public class CommentForm {
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
    @Schema(title = "用户id", description = "")
    private String userId;
    @Schema(title = "用户详情", description = "")
    @TableField(exist = false)
    private WxUser userDetail;

    @Schema(title = "星数评价", description = "")
    private String comprehensiveScore;

    @Schema(title = "感受", description = "")
    private String feel;

    @Schema(title = "服务id", description = "")
    private String serviceId;

    @Schema(title = "是否匿名", description = "")
    private String isAnonymous;

    @Schema(title = "评价图片", description = "")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<ImageEntity> image;

    @Schema(title = "父亲评价", description = "")
    private String parentId;

    @Schema(title="规格", description="")
    private String specifications ;

    @Schema(description = "创建时间")
    private Date createTime;
}